<template>
	<div class="home">
		<p>vue3+pinia+ <a href="javascript:void(0)" @click="openUrl()">arco design</a> </p>
		<a-space>
			<a-button @click="openFile">打开文件</a-button>
			<a-button @click="openNewWindow">打开新窗口</a-button>
		</a-space>
	</div>
</template>
<script setup lang="ts">

const openUrl=()=>{
	window.native.openUrl('https://arco.design/vue/docs/start')
}
const openFile=async ()=>{
	var res=await window.native.openFile()
	console.log(res)
}
const openNewWindow=()=>{
	window.native.openNewWindow({
		title:"新窗口",
		width:800,
		height:600,
		/**path是vue路由的某个页面 */
		path:"new-window",

	})
}
</script>
<style lang="scss" scoped>
.home{
	min-height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	
}
</style>